import request from '@/utils/request'
// --------  充值方式和支付方式 --------
let BASE_ADDRESS = '/base/config'
// 分页查询

export const getConfigListTopUptApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/listTopUp`,
        method: 'get',
        params: data
    })
}

// 修改
export const getConfigEditTopUpApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/editTopUp`,
        method: 'put',
        data
    })
}

// 添加
export const getConfigAddTopUpApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/addTopUp`,
        method: 'post',
        data
    })
}
// // 删除
// export const getConfigStatusApi = (data) => {
//     return request({
//         url: `${BASE_ADDRESS}/remove`,
//         method: 'delete',
//         data
//     })
// }


// 根据id查询
export const getConfigGetInfoTopUpApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfoTopUp`,
        method: 'get',
        params: data
    })
}

